<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.5.7/css/layui.css" type="text/css"
        rel="stylesheet" />
    <link rel="stylesheet" href="./css/styles.css">
    <script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.14/vue.js"></script>
    <script src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/zepto/1.2.0/zepto.min.js"></script>
    <script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.5.7/layui.all.js"></script>
</head>

<body>

    <!--主容器，显示词云-->
    <div id="main" class="wall">
    </div>

    <!--显示右下角的工具按钮-->
    <div id="app" class="tools" v-cloak>
        <div class="pure-button-tips">
            <span style="font-size: 16px;color: #FFF;">当前抽取：</span>
            <span style="font-size: 26px;color: #fbc903;">{{prizes[position].prize}}-{{prizes[position].name}}</span>
        </div>
        <button @click="toggle" class="pure-button" :class="running!=1?'button-error':'button-secondary'">
            <!--显示抽奖结果时，显示继续-->
            {{showResult ? "继续" : status[running]}}
        </button>
        <button class="pure-button button-success" @click="toggleFullScreen">{{fullState}}</button>
        <!--显示抽奖结果-->
        <button class="pure-button button-secondary" @click="showList">结果</button>
        <button class="pure-button button-warning" style="font-family: myfont;" @click="reset">重置</button>

        <!--显示抽奖的结果-->
        <transition name="fade">
            <!--展示页面-->
            <div id="result" class="result" v-if="running == 2">

                <div class="display" v-if="!showResult">
                    <!--输出抽奖结果-->
                    <img :src="prizes[position].url" />
                    <div class="down">
                        <div class="item1">{{prizes[position].prize + " " + prizes[position].name}}</div>
                        <div class="item2">{{prizes[position].person.join(' ')}}</div>
                    </div>
                </div>

            </div>

            <!--结果页面-->
            <div class="result2" v-if="showResult">

                <div class="list">

                    <!--循环输出结果-->
                    <ul>
                        <li v-for="(item,index) in prizesRverese" :key="index" :style="{width: '12%'}">
                            <div class="title" :style="{fontSize:'28px'}">{{item.prize}}</div>
                            <div class="title" :style="{fontSize:'20px'}">{{item.name}}</div>
                            <img :src="item.url">
                            <div :class="item.person.length>0?'footer':'footer2'" @click="showWinners(item)">
                                {{item.person.length>0?'查看中奖名单':'暂无中奖名单'}}
                            </div>
                        </li>
                    </ul>
                </div>

            </div>
        </transition>
    </div>

</body>

</html>